class AssetUtils {
  ///如若不是png，iconName需要添加扩展名
  static getAssetImage(String iconName, {bool isPNG = true}) {
    return isPNG ? 'assets/images/$iconName.png' : 'assets/images/$iconName';
  }

  static String getAsset2Image(String iconName, {bool isPNG = true}) {
    return isPNG
        ? 'assets/images/2.0x/$iconName@2x.png'
        : 'assets/images/2.0x/$iconName';
  }

  static getAsset3Image(String iconName, String filePath, {bool isPNG = true}) {
    return isPNG
        ? 'assets/images/3.0x/$iconName@3x.png'
        : 'assets/images/3.0x/$iconName';
  }

  static getAssetImagePNG(String iconName) {
    return 'assets/images/$iconName.png';
  }

  static String getAssetImage2PNG(String iconName) {
    return 'assets/images/2.0x/$iconName@2x.png';
  }

  static getAssetImage3PNG(String iconName) {
    return 'assets/images/3.0x/$iconName@3x.png';
  }
}
